﻿
@{
    Layout = "manage-2cols";
    //User user = (User)UserContext.CurrentUser;
    //int integrity = user.Profile.Integrity;
}
@model User

<div class="tn-box tn-widget tn-widget-content tn-corner-all spb-group-members">
    <div class="tn-box-content tn-widget-content tn-corner-all">
        <div class="tn-main-heading tn-border-gray tn-border-bottom">
            <h2>
                成员管理
            </h2>
        </div>
        <div class="tn-tabs">
            <ul class="tn-tabs-nav tn-border-gray tn-border-bottom tn-helper-clearfix">
                <li class="tn-widget-content tn-border-gray tn-border-trl">
                    <a href="@SiteUrls.Instance().ManageMemberApplies(Url.SpaceKey())">
                        申请处理
                    </a>
                </li>
                <li class="tn-widget-content tn-border-gray tn-border-trl">
                    <a href="@SiteUrls.Instance().ManageMembers(Url.SpaceKey())">
                        成员管理
                    </a>
                </li>
                <li class="tn-widget-content tn-border-gray tn-border-trl">
                    <a href="@SiteUrls.Instance().ManageChildGroups(Url.SpaceKey())">
                        子店铺管理
                    </a>
                </li>
                <li class="tn-widget-content tn-border-gray tn-border-trl tn-tabs-selected">
                    <a href="javascript:;"> 会员编辑</a>
                </li>
            </ul>
            <div class="tn-tabs-panel">
                <!-- 内容开始-->
               @using (Html.BeginAjaxForm("_add", "GroupSpace", FormMethod.Post, new AjaxFormOptions { OnSuccessCallBack = "OnSuccessCallBack" }))
{
    StatusMessageData statusMessageData = ViewData["statusMessageData"] as StatusMessageData;
    @Html.StatusMessage(statusMessageData)
    <div class="tnc-dailog-pd spb-group-invite">
        <div class="tn-form tn-label-right">
            <div class="tn-form-box">
                <table>
                    <tbody>
                        <tr>
                            <th>
                                手机号：
                            </th>
                            <td>
                                @Html.TextBoxFor(m => m.AccountMobile)
                                @Html.ValidationMessageFor(m => m.AccountMobile)
                            </td>
                        </tr>
                        <tr>
                            <th>
                                用户名：
                            </th>
                            <td>
                                @Html.TextBoxFor(m => m.UserName)
                                @Html.ValidationMessageFor(m => m.UserName)
                            </td>
                        </tr>
                        @*
                            <tr>
                                <th>
                                    昵称：
                                </th>
                                <td>
                                    @Html.TextBoxFor(m => m.NickName)
                                </td>
                            </tr>

                            <tr>
                                <th>
                                   密码：
                                </th>
                                <td>
                                    @Html.PasswordFor(m => m.Password)
                                </td>
                            </tr>*@
                    </tbody>
                </table>
            </div>
        </div>
    </div>
    <div class="tnc-artdilog-btn tn-bg-gray tn-border-gray tn-border-top">
        @Html.Button("下一步", ButtonTypes.Submit)
        @Html.Button("取消", ButtonTypes.Button, HighlightStyles.Secondary, htmlAttributes: new { dialogOperation = "close" })
    </div>
}
                <!-- 内容结束-->
            </div>
        </div>
    </div>
</div>


<script type="text/dialog">
    this.title("添加会员");
</script>
<script type="text/javascript">
    function OnSuccessCallBack(data) {
       
        if (data.MessageContent.indexOf("userid") != -1) {
            window.location.href = data.MessageContent;
        }
        else {
            art.dialog.tips(data.MessageContent, 3, data.MessageType);
        }
    };
</script>